package ftp.connection;

import java.util.LinkedList;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		RemoteConnection connection = new RemoteConnection("137.99.153.92", "pi", "raspberry", "/home/pi");
		
		System.out.println(connection.getPath());
		System.out.println(connection.listFiles());
		
		connection.changeDirectory("/home/ftp");
		System.out.println(connection.getPath());
		System.out.println(connection.listFiles());
		
		
		connection.uploadFile("C:\\Users\\Justin\\Desktop\\Race1.png");
		System.out.println(connection.listFiles());
		//connection.downloadFile("ocr_pi.png");
		
		/*connection.upDirectory();
		System.out.println(connection.getPath());
		System.out.println(connection.listContents());

		connection.upDirectory();
		System.out.println(connection.getPath());
		System.out.println(connection.listContents());
		*/
		
		connection.Disconnect();
	}

}
